package com.example.demo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("post")
public class Post {
    @TableId(type = IdType.AUTO)
    private String id;
    private String userId;
    private String title;
    private String content;
    private Date createTime;
    private Integer likes;
    private Boolean isLiked;
    private List<String> tags;
    private List<String> images;
    @TableField(exist = false)
    private List<Comment> comments;
}